/*
 * @Author: DUST
 * @Date: 2023-06-27 14:51:47
 * @LastEditors: DUST
 * @LastEditTime: 2023-06-27 14:55:41
 * @FilePath: \koa-node-ts\app\service\NavigateService.ts
 * @Description: 
 * undefined
 */

import Navigate from "../model/Navigate";


class NavigateService {
  addType(values: any) {
    return Navigate.findOrCreate({
      where: { name: values.name },
      defaults: values
    })
  }

  getList() {
    return Navigate.findAll()
  }
}

export default new NavigateService();